From: Florian Müllner Date: Thu, 26 Feb 2015 22:31:46 +0000 (+0100) Subject: screenShield: Do not wake up screen after adding hidden source X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1637 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c2104dbf85a153ec480b01390f56e4db2b6f2f78;p=gnome-shell.git screenShield: Do not wake up screen after adding hidden source The screen should be woken up when a new notification is shown on the lock screen, but not when a notification arrives while disabled. Add a missing condition to fix. https://bugzilla.gnome.org/show_bug.cgi?id=744114 --- diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index 76efd037c..1cfc21177 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -271,7 +271,8 @@ const NotificationsBox = new Lang.Class({ }); this._updateVisibility(); - this.emit('wake-up-screen'); + if (obj.sourceBox.visible) + this.emit('wake-up-screen'); } },